﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace OfficeSVN {

    public class MousePointer : IDisposable {

        private Cursor _LastCursor;

        public MousePointer(Cursor cursor) {
            _LastCursor = Cursor.Current;

            Cursor.Current = cursor;
        }

        public MousePointer() : this(Cursors.WaitCursor) { }

        public void Dispose() {
            Cursor.Current = _LastCursor;
        }
    }
}
